package com.wephone.Student.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.wephone.Student.R;

public class SelectUserLocationsActivity extends BaseActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_select_user_locations);
		
		init();
	}
	
	@Override
	protected void onActivityResult(int requestCode, int resultCode, Intent data) {
		if(resultCode==11){
			setResult(111);
			finish();
		}
	}

	private void init(){
		findViewById(R.id.btn_back).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});
		
		findViewById(R.id.sub_layout_1).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivityForResult(new Intent(getApplicationContext(),MyLocationInfo1Activity.class),1);
			}
		});
		
		findViewById(R.id.sub_layout_2).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivityForResult(new Intent(getApplicationContext(),MyLocationInfo2Activity.class),2);
			}
		});
		
		findViewById(R.id.sub_layout_3).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivityForResult(new Intent(getApplicationContext(),MyLocationInfo3Activity.class),3);
			}
		});
		
	}

}
